@if not defined ENTRY_ROOT SET  ENTRY_ROOT=%CD%

@call java -jar wget.jar install

@PUSHD ..
@call tool\autoconf\buildenv.bat
@call envconf.bat
@POPD

call buildwnd.bat init 2>nul
if defined PROJECT_ROOT goto :BUILDWND_OK

call %ENTRY_HOME%\buildwnd.bat init 2>nul
if defined PROJECT_ROOT goto :BUILDWND_OK

call %TOOL_HOME%\buildwnd.bat init 2>nul
if defined PROJECT_ROOT goto :BUILDWND_OK

call %TOOL_HOME%\autoconf\buildwnd.bat init 2>nul
if defined PROJECT_ROOT goto :BUILDWND_OK

:BUILDWND_OK

@call make gtest